package com.example.ktsb.repository

import com.example.ktsb.entity.Message
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.data.jpa.repository.Query

interface MessageRepository : JpaRepository<Message, String> {

    @Query("select * from messages", nativeQuery = true)
    fun findMessages(): List<Message>

}